package com.cssl.controller;

import com.cssl.domain.dto.DtsissueDto;
import com.cssl.openFeign.DstissueClient;
import com.cssl.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/issue")
public class DtsissueController {
    @Autowired
    DstissueClient client;
    @PostMapping("/list")
    Result dtsissuelist(@RequestBody DtsissueDto dtsissueDto){
        return client.dtsissuelist(dtsissueDto);
    }
    @DeleteMapping("/delete")
    Result issuedelete(@RequestParam("ids") String ids){
        return client.issuedelete(ids);
    }

    @PostMapping("/updateissue")
    Result updateissue(@RequestBody Map updateissue){
        return client.updateissue(updateissue);
    }

    @PostMapping("/addissue")
    Result addissue(@RequestBody Map addissue){
        return client.addissue(addissue);
    }
}
